package com.company.creature;

import com.company.transport.*;

public class Person {
    private String id;
    private String p_name;
    private int age;
    private String p_sex;

    public void driveTransport(AirCraft airCraft){
        System.out.println("driving aircraft"+airCraft.getId());
    }
    public void driveTransport(Airship airship){
        System.out.println("driving airship"+airship.getId());
    }
    public void driveTransport(Automobile automobile){
        System.out.println("driving automobile"+automobile.getId());
    }
    public void driveTransport(Bicycle bicycle){
        System.out.println("driving bicycle"+bicycle.getId());
    }
    public void driveTransport(HotAirBalloon hotAirBalloon){
        System.out.println("driving hotAirBalloon"+hotAirBalloon.getId());
    }
    public void driveTransport(Hovercraft hovercraft){
        System.out.println("driving hovercraft"+hovercraft.getId());
    }
    public void driveTransport(Motorcycle motorcycle){
        System.out.println("driving motorcycle"+motorcycle.getId());
    }
    public void driveTransport(Ship ship){
        System.out.println("driving ship"+ship.getId());
    }
    public void driveTransport(Submarine submarine){
        System.out.println("driving submarine"+submarine.getId());
    }

    public Person() {
    }

    public Person(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getP_sex() {
        return p_sex;
    }

    public void setP_sex(String p_sex) {
        this.p_sex = p_sex;
    }
}
